using UnityEngine;
using UnityEngine.UI;
using QFramework;
using UnityEngine.SceneManagement;

namespace Projectsurviva
{
	public class UiGamePasspanelData : UIPanelData
	{
	}
	public partial class UiGamePasspanel : UIPanel
	{
		protected override void OnInit(IUIData uiData = null)
		{
			mData = uiData as UiGamePasspanelData ?? new UiGamePasspanelData();
            AudioKit.PlaySound("pass");
          
            btnbacktostart.onClick.AddListener(() =>
            {
                //this.CloseSelf();
				gameObject.SetActive(false);
                SceneManager.LoadScene("GameStart");
            });
        }
		
		protected override void OnOpen(IUIData uiData = null)
		{
		}
		
		protected override void OnShow()
		{
		}
		
		protected override void OnHide()
		{
		}
		
		protected override void OnClose()
		{
		}
	}
}
